<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <!-- 标题 -->
    <title>地址列表</title>
    <!-- 关键词 -->
    <meta name="keywords" content="" />
    <!-- 网站简介 -->
    <meta name="description" content="" />
    <!-- 自适应屏幕 -->
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
    <!-- IE兼容 -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 最新 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="css/bootstrap.css">
    <!-- 最新 删除提示 CSS 文件 -->
    <link rel="stylesheet" href="css/save-tip.css">
    <!-- 核心 CSS 文件 -->
    <link rel="stylesheet" href="css/style.css" type="text/css">
</head>
<body>
    <div class="tongdui-wrapper">
        <!-- 顶部 -->
        <div class="top-nav clearfix cart-nav">
            <div class="top-nav-left">
                <a href="" class="iconfont">&#xe64a;</a>
            </div>
            <div class="top-nav-center">
                地址管理   
            </div>
        </div>
        
        <!-- 地址列表 -->
        <div class="address">
            <div class="address-list">
                <div class="address-list-item">
                    <div class="address-info">
                        <div class="address-info-top">
                            张伟明<span>15872398544</span>
                        </div>  
                        <div class="address-info-bottom">
                            宁夏，银川，用内县，宝安大道377号
                        </div>  
                    </div>
                    <div class="address-action clearfix">
                        <div class="left"><input type="radio" class="myClass" name="answer" checked="checked"/></div>
                        <div class="left set-address">默认地址</div>
                        <div class="right item">
                            <a href="edit-address.html" class="address-edit">修改</a>
                            <input type="submit" value="删除" class="address-delete">
                        </div>
                    </div>
                </div>
                <div class="address-list-item">
                    <div class="address-info">
                        <div class="address-info-top">
                            张伟明<span>15872398544</span>
                        </div>  
                        <div class="address-info-bottom">
                            宁夏，银川，用内县，宝安大道377号
                        </div>  
                    </div>
                    <div class="address-action clearfix">
                        <div class="left"><input  type="radio" class="myClass" name="answer" /></div>
                        <div class="left set-address">默认地址</div>
                        <div class="right item">
                            <a href="edit-address.html" class="address-edit">修改</a>
                            <input type="submit" value="删除" class="address-delete">
                        </div>
                    </div>
                </div>
            </div>
            <div class="container-a">
                <a href="add-address.html" class="address-add ">新增一个收货地址</a>
            </div>
        </div>
    </div>


    <!-- jQuery文件 -->
    <script src="js/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="js/bootstrap.min.js"></script>
    <!-- 选中按钮 -->
    <script src="js/check.js"></script>
    <!-- 删除提示 js-->
    <script src="js/save.js"></script>
    <script>
        $(document).ready(function(){
            $('.item .address-delete').click(function(){
                var elem = $(this).closest('.item');
                $.confirm({
                    'message'   : '确认删除该地址吗？',
                    'buttons'   : {
                        '确定'   : {
                            'class' : 'blue',
                            'action': function(){
                                
                            }
                        },
                        '取消'    : {
                            'action': function(){}  
                        }
                    }
                });
            });
        });
    </script>
    <script>
        $().ready(function(){
            $('input.myClass').Checkable({    
            });
        });
    </script>

</body>
</html>
